<p id="logInOut"><a class="button" href="<?php echo $this->baseUrl(); ?>/user/logout">Log uit&hellip;</a></p>
<h2>Afdelingen</h2>
<div id="backgroundplan"> 
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="851px"
	 height="731px" viewBox="0 0 851 731" enable-background="new 0 0 851 731" xml:space="preserve">        
        <?php foreach ($this->department as $department ) { ?>         
            <?php foreach ($this->department as $department ) { ?>         
                <?php foreach ($department->Subdepartment as $subdepartment ) { ?>         
                    <g id="departments">
                        <polygon id="<?php echo $department->name?>" fill="<?php echo $department->color?>" points="<?php echo $subdepartment->subdepartmentPoints?>"/>
                    </g>                  
                <?php } ?>    
            <?php } ?>    
        <?php } ?>    
        <?php
            $file1 = "txt/planSVG.txt";
            $f = fopen($file1, "r");
            while ( $line = fgets($f, 1000) ) {
                print $line;
            }
        ?>  
</div>
<div class="list">    
        <ul>
        <?php foreach ($this->department as $department ) { ?> 
            <li id=""> 
                 <a href ="<?php echo $this->baseUrl(); ?>/department/edit/id/<?php echo $department->id ?>" id="<?php echo $department->name?>">
                    <?php echo $department->name?>  
                 </a>
            </li>                     
        <?php } ?>
        </ul>
        </div>
<hr />